import request from "@/utils/request"


// 分页查询所有
export const queryAllPage = (name:string,page:number,pageSize:number) => request.get(`/nursing?name=${name}&page=${page}&pageSize=${pageSize}`)
// export const queryAllPage = () => request.get(`/nursing`)

//添加
export const addNursing = (data:any) => request.post(`/nursing`,data)

//根据id回显
export const queryById = (id:number) => request.get(`/nursing/${id}`)

//修改
export const updateNursing = (data:any) => request.put(`/nursing`,data)
//批量删除
export const deleteNursing = (ids:string) => request.delete(`/nursing?ids=${ids}`)
